trigger DeleteCompetitorAuditHistory on CompetitorAuditHistory__c (before delete) {
    for(CompetitorAuditHistory__c t:trigger.old){
        if(t.AuditDate__c<=date.today()){
            t.addError('该记录不能被删除!');
        }
    }
}